/* 
    file:   ui_dev.h
 */
/* ------------------------------------------------------------------------- */
#ifndef __UI_DEV_H
#define __UI_DEV_H

#ifdef __cplusplus
 extern "C" {
#endif
/* ------------------------------------------------------------------------- */

#include "stdint.h"
#include "ui_core.h"
/* ------------------------------------------------------------------------- */

#define         UI_USE_EXTERNAL_MEM                 0
#if UI_USE_EXTERNAL_MEM
#include "tlsf.h"
#define         ui_malloc       tlsf_malloc
#define         ui_free         tlsf_free
#else
#include "stdlib.h"
#define         ui_malloc       malloc
#define         ui_free         free
#endif
/* ------------------------------------------------------------------------- */
/* display */

void ui_disp_fill(void * pbuf,unsigned int sx,unsigned int sy,unsigned int ex,unsigned int ey,unsigned short color);
void ui_disp_copy(void * pbuf,unsigned int sx,unsigned int sy,unsigned int ex,unsigned int ey,void * color,unsigned int width);
/* ------------------------------------------------------------------------- */
/* touch */

/* ------------------------------------------------------------------------- */
#ifdef __cplusplus
}
#endif

#endif /* __UI_DEV_H */
